<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>搜索</title>
  <link rel="stylesheet" href="./css/base.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/productlist.css">
</head>

<body>
  <div class="mm-layout" id="aa">
    <!-- 头部 -->
    <div class="mm-header">
      <div class="hd-logo">
        <span>
          <img src="./images/header_logo.png" alt="">
        </span>
        <a href="#">
          <img src="./images/header_app.png" alt="">
        </a>
      </div>
      <div class="hd-search">
        <form class="hd-form">
          <input type="search" class="search" name="search" placeholder="请输入你想比价的商品">
          <button type="button" class="search-btn">搜索</button>
        </form>
      </div>
    </div>

    <!-- 主体 -->
    <div class="mm-main">
      <!-- 面包蟹导航 -->
      <div class="product-top">
        <a href="index.html">首页</a>><a href="category.html">全部分类</a>><a href="#" class="category-info"></a>>
        <button type="button" class="product-btn fr">筛选</button>
      </div>
      <!-- 商品信息 -->
      <div class="product-info">
        <div class="content">
          <ul>
            <li>
              <a href="#">
                <img src="./images/mnav.jpg" alt="">
                <div class="info">
                  <div class="tit">乐视TV(Letv)S50 Air全配版2D 50英寸 全高清LED液晶电视</div>
                  <p>￥ 1999.00</p>
                  <span>报价(6)</span><span>评论(2222)</span>
                </div>
              </a>
            </li>
          </ul>
          <!-- 分页标签 -->
          <div class="page">
            <span>
              <a href="#" class="pro-on">上一页</a>
            </span>
            <span>
              <select name="" id="">
                <option value="" >1</option>
                <option value="">2</option>
                <option value="">3</option>
              </select>
            </span>
            <span>
              <a href="#" class="pro-under">上一页</a>
            </span>
          </div>
        </div>
      </div>


    </div>


    <!-- 底部 -->
    <div class="mm-footer">
      <div class="foot-top">
        <a href="#">登录</a>
        <a href="#">注册</a>
        <a href="#aa" class="upward"><img src="./images/top.jpg" alt="">返回顶部</a>
      </div>
      <div class="foot-bottom">
        <p>
          <a href="#">手机APP下载</a>
          <span>慢慢买手机版</span>
          -- 掌上比价平台
        </p>
        <p>m.manmanbuy.com</p>
      </div>
    </div>

  </div>
  <!-- productId": "商品id",
  "categoryId": "商品分类id",
  "productListId": "商品列表id",
  "productName": "商品名称",
  "productImg": "商品图片",
  "productPrice": "商品价格",
  "productQuote": "商品报价",
  "productCom": "商品评论数",
  "brandName": "品牌名称",
  "brandTitleId": "品牌标题id" -->
  <!-- 商品信息模板 -->
  <script type="text/html" id="tmp">
    <ul>
    {{ each result v i }}
     <li>
        <a href="bijia.html?productid={{ v.productId }}">
          {{@ v.productImg  }}
          <div class="info">
            <div class="tit">{{ v.productName }}</div>
            <p>{{ v.productPrice }}</p>
            <span>{{ v.productQuote }}</span><span>{{ v.productCom }}</span>
          </div>
        </a>
      </li>
    {{ /each }}
  </ul>

  <div class="pro-page">
      <span>
        <a href="#" class="pro-on">上一页</a>
      </span>
      <span>
        <select name="" id="pro-select">
          <% for(var i = 0; i < totalCount/10; i++ ) { %>

            <option value="{{ i+1 }}" >{{ i+1 }}/<%= totalCount / 10 %> </option>
          <% } %>
      </select>
      </span>
      <span>
        <a href="#" class="pro-under" data-pagin={{ totalCount }}>下一页</a>
      </span>
    </div>
 
  </script>

  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./lib/jquery/jquery.min.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/productist.js"></script>
</body>

</html>